x86: introduce a nmi_count tracking variable
authorRoger Pau Monné <roger.pau@citrix.com>
Wed, 26 Feb 2020 16:36:30 +0000 (17:36 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 26 Feb 2020 16:36:30 +0000 (17:36 +0100)
commit67e11bc8675c77bab2b5020acbaf211abd75096b
treea0699ab180004a3ea7884cbc80c3af462f7b538e
parent15c39c7c913f26fba40231e103ce1ffa6101e7c9
x86: introduce a nmi_count tracking variable

This is modeled after the irq_count variable, and is used to account
for all the NMIs handled by the system.

This will allow to repurpose the nmi_count() helper so it can be used
in a similar manner as local_irq_count(): account for the NMIs
currently in service.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/nmi.c
xen/arch/x86/traps.c
xen/include/asm-x86/hardirq.h
xen/include/asm-x86/nmi.h
xen/include/xen/irq_cpustat.h